/*
 * FengGUI - Java GUIs in OpenGL (http://www.fenggui.org)
 * 
 * Copyright (C) 2005, 2006 FengGUI Project
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details:
 * http://www.gnu.org/copyleft/lesser.html#TOC3
 * 
 * Created on 19.12.2007
 * $Id$
 */
package org.fenggui.event;

import org.fenggui.IWidget;
import org.fenggui.util.Dimension;

/**
 * 
 * @author marcmenghin, last edited by $Author$, $Date$
 * @version $Revision$
 */
public class SizeChangedEvent extends WidgetEvent
{
	private Dimension oldSize;
	private Dimension newSize;
	
	public SizeChangedEvent(IWidget source, Dimension oldSize, Dimension newSize)
	{
		super(source);
		this.oldSize = oldSize;
		this.newSize = newSize;
	}

	/**
	 * @return Returns the oldSize.
	 */
	public Dimension getOldSize()
	{
		return oldSize;
	}

	/**
	 * @return Returns the newSize.
	 */
	public Dimension getNewSize()
	{
		return newSize;
	}
	
	

}
